Description | : The API provides a GeoJSON feature collection of traffic incidents. Each incident includes two point features: the location where you encounter the incident and the end location of a traffic incident like the end of a construction zone. For traffic incident coverage by country/region, see [traffic coverage](https://learn.microsoft.com/azure/azure-maps/traffic-coverage?pivots=latest). |
Reference | : Link ¶ |
⚶ Changes
{ "#id": "Traffic_GetTrafficIncident", "$parameters": [ { "#name": "bbox", "Description": { "new": "Defines a rectangular area of interest on the Earth's surface. The sides of the rectangle are specified by longitude and latitude values and must adhere to the GeoJSON format: [minLon, minLat, maxLon, maxLat]. For more information, see [RFC 7946, Section 5](https://www.rfc-editor.org/rfc/rfc7946#section-5).
- **Minimum Dimensions**: The height or width of the bounding box must be at least 12 meters.
- **Maximum Area**: The bounding box can cover an area up to 10,000 square kilometers.
- **Incident Inclusion**: Traffic incidents will be included in the response if they overlap with the bounding box, or if their start, end, or any part of the incident passes through the bounding box. The start and end locations of the incident can be outside the bounding box.
⚼ Request
GET:
/traffic/incident
{
x-ms-client-id:
string
,
api-version:
string
,
incidentType:
string
,
bbox:
array
,
Accept-Language:
string
,
}
⚐ Response (200)
{
type:
enum
,
features:
}
[
,
object
,
]
⚐ Response (default)
{
error:
}
{
,
code:
string
,
message:
string
,
target:
string
,
details:
[
,
string
,
]
additionalInfo:
}
[
]
,
{
,
type:
string
,
info:
object
,
}